@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/dictType/update.js"]}){
<form id="dictTypeForm" lay-filter="dictTypeForm" class="layui-form model-form">

    <input name="id" value="${obj.id!}" type="hidden"/>

    <div class="layui-form-item">
        <label class="layui-form-label">类型名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input value='${obj.name!}' name="name" placeholder="请输入字典类型名称" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>

    <div class="layui-form-item">
       <label class="layui-form-label">类型编码<span style="color: red;">*</span></label>
       <div class="layui-input-block">
           <input value='${obj.code!}' name="code" placeholder="请输入字典类型编码" type="text" class="layui-input" lay-verify="required" required/>
       </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">状态(字典)<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input type="radio" name="state" value="1" title="启用" ${obj.state! == 1 ? 'checked' : ''}>
            <input type="radio" name="state" value="0" title="禁用" ${obj.state! == 0 ? 'checked' : ''}>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">字典描述<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <textarea id="description" name="description" placeholder="请输入字典描述" class="layui-textarea">${obj.description!}</textarea>
        </div>
    </div>


    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>

</form>
@}